
#pragma once

#include <ITimer.h>
using namespace irr;

namespace Irrlicht
{
	namespace Net
	{
		public ref class Timer : ReferenceCounted
		{
		private:
			ITimer* insider;

		public:
			Timer(ITimer* it)
			{
				insider = it;
			}

			property unsigned int RealTime
			{
				unsigned int get()
				{
					return insider->getRealTime();
				}
			}

			property unsigned int Time
			{
				unsigned int get()
				{
					return insider->getTime();
				}
				void set(unsigned int time)
				{
					insider->setTime(time);
				}
			}
			
			void Stop()
			{
				insider->stop();
			}
			void Start()
			{
				insider->start();
			}
			
			property float Speed
			{
				float get()
				{
					return insider->getSpeed();
				}
				void set(float speed)
				{
					insider->setSpeed(speed);
				}
			};
			property bool IsStopped
			{
				bool get()
				{
					return insider->isStopped();
				}
			};
		};
	}
}